/**
 * @description 定义数据状态管理器
 */

import Vue from 'vue'
import Vuex from 'vuex'
import persisted from 'vuex-persistedstate'
import common from './common'

Vue.use(Vuex)

const store = new Vuex.Store({
    plugins:[
        persisted({
            storage:window.sessionStorage
        })
    ],
    modules:{
        common
    }
})

export default store